import Layout from '@/layouts';

export default [
  {
    path: '/wcx',
    component: Layout,
    redirect: '/wcx/home',
    meta: {
      title: '微创新与QC',
      isOrNot: true,
    },
    children: [
      {
        path: 'home',
        component: () => import('@/pages/wcx/home.vue'),
        meta: {title: '首页', icon: 'view-module'},
      },
      {
        path: 'info',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/wcx/info/apply-plan',
        meta: { title: '通知公告', icon: 'view-module'},
        children: [
          {
            path: 'plan',
            component: () => import('@/pages/wcx/apply/apply-plan.vue'),
            meta: { title: '年度计划'},
          },
          {
            path: 'unit-quota',
            component: () => import('@/pages/wcx/apply/unit-quota.vue'),
            meta: { title: '年度推荐名额'},
          },
          {
            path: 'award',
            component: () => import('@/pages/wcx/apply/year-innovation-award.vue'),
            meta: { title: '年度奖励'},
          },
        ]
      },
      {
        path: 'approve',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/wcx/approve/approve-my',
        meta: { title: '审批管理', icon: 'view-module'},
        children: [
          {
            path: 'approve-my',
            component: () => import('@/pages/wcx/approve/approve-my.vue'),
            meta: { title: '待我审批记录'},
          },
          {
            path: 'approved-my',
            component: () => import('@/pages/wcx/approve/approved-my.vue'),
            meta: { title: '我已审批记录'},
          },
        ]
      },
      {
        path: 'apply',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/wcx/apply/apply-plan',
        meta: {title: '申报管理', icon: 'view-module'},
        children: [
          {
            path: 'innovation-index',
            component: () => import('@/pages/wcx/apply/innovation-index.vue'),
            meta: { title: '微创新成果列表'},
          },
          {
            path: 'innovation-my',
            component: () => import('@/pages/wcx/apply/innovation-my.vue'),
            meta: { title: '我的微创新成果'},
          },
        ]
      },
      {
        path: 'recommend',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/wcx/recommend/recommend-my',
        meta: {title: '推荐管理', icon: 'view-module'},
        children: [
          {
            path: 'pending',
            component: () => import('@/pages/wcx/recommend/recommend-pending.vue'),
            meta: { title: '待推荐成果列表'},
          },
          {
            path: 'complete',
            component: () => import('@/pages/wcx/recommend/recommend-complete.vue'),
            meta: { title: '被推荐成果列表'},
          },
        ]
      },
      {
        path: 'review',
        component: () => import('@/layouts/blank.vue'),
        redirect: 'wxc/review/review-index',
        meta: { title: '评审管理', icon: 'view-module'},
        children: [
          {
            path: 'review-standard',
            component: () => import('@/pages/wcx/review/review-standard.vue'),
            meta: { title: '评审指标体系'},
          },
          {
            path: 'review-group',
            component: () => import('@/pages/wcx/review/review-group.vue'),
            meta: { title: '评审分组体系'},
          },
        ]
      },
      {
        path: 'result',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kjxm/defend5/defend1',
        meta: {title: '成果录入管理', icon: 'view-module'},
        children: [
          {
            path: '1',
            component: () => import('@/pages/blank.vue'),
            meta: {title: '成果登记'},
          },
          {
            path: '2',
            component: () => import('@/pages/blank.vue'),
            meta: {title: '成果共享'},
          },
          {
            path: '3',
            component: () => import('@/pages/blank.vue'),
            meta: {title: '成果推广'},
          },
        ]
      }
    ]
  }
]
